[2026-01-11] Deep Learning-Based DDoS Detection in SDN Networks with Explainable AI Transparency
๐ฆฅ ๋ณธ๋ฌธ
Intro
Software-Defined Networking (SDN)
์ํํธ์จ์ด ์ ์ ๋คํธ์ํน. control plane๊ณผ data plane์ ๋ถ๋ฆฌํ์ฌ ์ค์ ์ง์คํ.
- Control plane : ๋ผ์ฐํ ํ ์ด๋ธ ์์ฑ, ๋คํธ์ํฌ Topology ํ์ ๋ฑ ์ด๋ ๊ฒฝ๋ก๋ก ์ด๋ํ ์ง ๊ฒฐ์ ํ๋ ๋ถ๋ถ
- Data plane : Control plane์ ๋ฐ๋ผ ๋ฌผ๋ฆฌ์ ์ผ๋ก ํจํท ์ ๋ฌ
Architecture

- Application Layer : ๋คํธ์ํฌ ๋ณด์, ์นจ์ ํ์ง ์์คํ (IDS), Load Balancing ๊ฐ์ ๋คํธ์ํฌ ์๋น์ค์ ์ ํ๋ฆฌ์ผ์ด์ .
- Control Layer : SDN controller
- SDN controller : ์ค์ ์ง์ค์ ์ผ๋ก ๋คํธ์ํฌ ์ค์์น๋ฅผ ๊ด๋ฆฌ
- Infra Layer : ์ค์ ํจํท ์ ์ก์ ๋ด๋นํ๋ ๋คํธ์ํฌ ์ฅ๋น.
Interface
-
Southbound API

- OpenFlow ํ๋กํ ์ฝ์ ์ฌ์ฉํ์ฌ ์ปจํธ๋กค๋ฌ-์ค์์น ํต์

- OpenFlow ํ๋กํ ์ฝ์ ์ฌ์ฉํ์ฌ Flow table์ ๋ณ๊ฒฝ.
-
Flow table : ๊ฐ flow ๋ง๋ค Rule, Action, Statistics (ํต๊ณ ์ ๋ณด)๊ฐ ์์

-
๋์ ํ๋ฆ
- ๋คํธ์ํฌ์ ํจํท ์ง์
- Flow Lookup
-
์ฌ๋ฌ ํ ์ด๋ธ์ ํต๊ณผ

-
- table์ ์๋ ๊ฒฝ์ฐ Action์ ์ทจํ ํ Statistics๋ฅผ ์ ๋ฐ์ดํธ
- table์ ์๋ ๊ฒฝ์ฐ SDN Controller์ secure channel๋ก ๋ณด๋
Related work
[10] : A Multi-Classifier for DDoS Attacks Using Stacking Ensemble Deep Neural Network
CNN, LSTM, GRU๋ฅผ ๊ฒฐํฉ. ์์๋ธ ๊ธฐ๋ฒ์ ์ ์ฉ. ๋ค์ค ๋ถ๋ฅ๊ธฐ ๋ชจ๋ธ.
[11] : Detection of DDoS Attacks in Software Defined Networking Using Machine Learning Models
SDN ํ๊ฒฝ์์ DDoS ํ์ง๋ฅผ ์ํด Random Forest, Decision Tree, Support Vector Machine (SVM), XGBoost๋ฅผ ํฌํจํ 4๊ฐ์ง ์๊ณ ๋ฆฌ์ฆ ์ฌ์ฉ
[12] : Comparative Study for Identifying and Categorizing DDoS Attacks
ํต๊ณ์ ๊ธฐ๋ฒ๊ณผ ๋จธ์ ๋ฌ๋ ๊ธฐ๋ฒ. ๋ ๊ฐ์ง ๋ฐฉ๋ฒ๋ก ์ ๊ฐ์ ๊ณผ ํ๊ณ. ML ๊ธฐ๋ฐ์ด ๋ ์ฑ๋ฅ์ด ๋ฐ์ด๋ ๊ฒฐ๊ณผ๋ฅผ ๋ณด์ฌ์ค. ์ด์ง ๋ถ๋ฅ๋ ๋์ ์ ํ๋๋ฅผ ๋ณด์ฌ์ฃผ์ง๋ง ๋ค์ค ๋ถ๋ฅ๋ ์ ํ๋๊ฐ ๋จ์ด์ง. ๋ํ ๋์ ์ฐ์ฐ ๋น์ฉ๊ณผ ์ผ๋ถ ์ฐ๊ตฌ์์๋ ํน์ ๋ฐ์ดํฐ์ ์ ์์กดํจ
[13] : Improving DDoS Attack Detection Leveraging a Multi-aspect Ensemble Feature Selection
์์๋ธ ํผ์ฒ ์ ํ ๊ธฐ๋ฒ์ ํต๊ณ์ ํํฐ๋ง ๋ฐฉ์๊ณผ ML์ ์กฐํฉ. ์๊ฐ ๋จ์ถ
METHODOLOGY
๋ฐ์ดํฐ์ : CIC-DDoS2019
์ ์ฒ๋ฆฌ
- ์ผ๊ด๋์ง ์์ ๊ฐ์ ์ ๊ฑฐํ์ฌ ๋ฌด๊ฒฐ์ฑ ๋ณด์ฅ
- ๋ฒ์ฃผํ ํน์ฑ๋ค์ ๋ ์ด๋ธ ์ธ์ฝ๋ฉ
- Random under-sampling์ ์ ์ฉํ์ฌ ๋ฐ์ดํฐ ๊ท ํ
- mutual information-based feature selection์ ์ฌ์ฉํ์ฌ ์ค์ํ ํน์ฑ ์๋ณ
- min-max ์ ๊ทํ๋ฅผ ํตํด 0~1 ์ฌ์ด๋ก ์ค์ผ์ผ๋ง
ํ๋ จ-ํ ์คํธ ๋ถํ : ํ ์คํธ์ฉ 20%, ํ๋ จ์ฉ 80%
๋ชจ๋ธ : CNN, LSTM, GRU, RNN, ANN
ํ๊ฐ : accuracy, recall, precision, F1-score, AUC score
- AUC score : recall๊ณผ FP ์ฌ์ด์ ๊ด๊ณ๋ฅผ ๋ํ๋ด๋ ROC ๊ณก์ ์ ์๋ ๋ฉด์ . 1์ ๊ฐ๊น์ธ ์๋ก ์๋ฒฝํ๊ฒ ๋ถ๋ฅํ๋ค๋ ๊ฒ์ ์๋ฏธ
๋ชจ๋ธ ์ค๋ช : SHAP๋ ์ ์ญ/๊ตญ์์ ์ค๋ช . LIME์ ๊ตญ์์ ์ค๋ช ์ ์ฌ์ฉ
Experimental results

์ ๋ฐ์ ์ผ๋ก CNN๊ณผ ANN์ด ์ฐ์ํจ. ANN์ด ํ๋ จ ์๊ฐ๊ณผ ํ ์คํธ ์๊ฐ์ด ํจ์ฌ ์งง์.
-
ANN Confusion Matrix

- Class 0 : ์ ์
- Class 1 : DDoS ๊ณต๊ฒฉ
- ๋ฏธํ์ ๊ฒฝ์ฐ๊ฐ 0๊ฑด
-
ROC ๊ณก์ : ์ฌํ์จ๊ณผ FPR (์ ์์ธ๋ฐ ๊ณต๊ฒฉ์ผ๋ก ์์ธก) ์ฌ์ด ๊ทธ๋ํ

์คํ์ด ๊ฑฐ์ ์์ด์ ๋ถ๋ฅ๋ฅผ ์ํ๋ค๋ ๋ป
Comparision with Exisiting State of the Work

ANN ๋ฐฉ์์ด ๊ฐ์ฅ ์ข์
Model Explanation
SHAP feature impact on model prediction of ANN

Inbound feature๊ฐ ์์ธก ๊ฒฐ๊ณผ์ ๊ฐ์ฅ ์ค์ํ ์ํฅ์ ๋ผ์นจ. inbound ๊ฐ์ด ๋ฎ์ ์๋ก SHAP ๊ฐ์ด ๋ฎ์์ง๊ณ , inbound ๊ฐ์ด ๋์ ์๋ก SHAP ๊ฐ์ด ์ฆ๊ฐ
- โSHAP ๊ฐ์ด ๋์์ง๋ค, ๋ฎ์์ง๋คโ์ ์๋ฏธ : SHAP ๊ฐ์ด ๋์ ์๋ก ๋ ๊ณต๊ฒฉ์ผ๋ก ํ๋จ. ๋ฎ์ ์๋ก ๋ ์ ์์ผ๋ก ํ๋จ.
SHAP waterfall plot of ANN model for a TP instance

- waterfall plot : ํน์ ์์ธก ๊ฒฐ๊ณผ์ ๋ํด ๊ฐ ํน์ฑ์ด ๊ฒฐ๊ณผ๊ฐ์ ๋์ด๊ฑฐ๋ ๋ฎ์ถ๋ ๋ฐ ์ผ๋ง๋ ๊ธฐ์ฌํ๋์ง ๋ณด์ฌ์ค.
- ๊ธฐ๋ณธ๊ฐ (E[f(X)]): ๋ชจ๋ ๋ฐ์ดํฐ์ ํ๊ท ์ ์ธ ์์ธก ๊ฒฐ๊ณผ๊ฐ. ๊ทธ๋ํ์ ์์์ .
- f(x) = 1 : ๋ชจ๋ธ์ ์ต์ข ๊ฒฐ๊ณผ๊ฐ. 1์ด๋ฏ๋ก 100% ํ๋ฅ ๋ก DDoS ๊ณต๊ฒฉ
- Inbound๊ฐ 1์ธ ํน์ฑ์ด 12%๋ ์ํฅ์ ์ค
- ACK Flag๊ฐ 0์ธ ํน์ฑ์ด ์ ์์ด๋ผ๊ณ ์๊ฐํ๊ฒ ํ์ง๋ง ๋ฏธ๋ฏธํจ.
LIME plot of ANN model for a TP instance
)
URG Flag Count๊ฐ 0๋ณด๋ค ์๊ฑฐ๋ ๊ฐ์ ๋, ๊ฐ์ฅ Positive๋ก ๋ถ๋ฅํ ํ๋ฅ ์ ๋์. Inbound๊ฐ 0๋ณด๋ค ์์ ๋, Negative(์ ์)์ด๋ผ๊ณ ํ๋จํ ํ๋ฅ ์ ๋์.
SHAP waterfall plot of ANN model for a TN instance

์ ์ ํธ๋ํฝ ํ๋จ์ ๊ฐ์ฅ ํฐ ์ํฅ์ ์ค feature. Inbound๊ฐ 0์ผ ๋, ์ ์ ํ๋จ์ด๋ผ๋ ๊ฒ์ 20% ์ ๋์ ์ํฅ๋ ฅ์ ๋ผ์นจ
LIME plot of ANN model for a TN instance

Discussion
- SDN ํ๊ฒฝ ์ค์ ์์์ ํจ๊ณผ์ฑ์ ๋ํ ์ค์ฆ์ ์ธ ๋ฐ์ดํฐ๋ ํ๋ณด ๋ชปํจ
- 4์ด๋ ๊ด์ฐฎ์ ๊ฑด๊ฐ? ๋ฐ์ดํฐ์ ์ด 2019์ธ๋ฐ ์ต์ ๋ฐ์ดํฐ์ ์์๋..?
Leave a comment